package ch.netcetera.planningpoker.server.model;

import com.googlecode.objectify.Key;


public class Participant extends DatastoreObject {

    private String name;

    private Key<Game> game;
    
    private String channelToken;

    public Participant() {

    }

    public Participant(String name) {
        this.name = name;
    }
    
    public Participant(String name, Key<Game> game) {
        this.name = name;
        this.game = game;
    }    

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Key<Game> getGame() {
        return game;
    }
    
    public Long getGameId() {
        return game.getId();
    }

    public void setGame(Key<Game> game) {
        this.game = game;
    }

    public String getChannelToken() {
        return channelToken;
    }

    public void setChannelToken(String channelToken) {
        this.channelToken = channelToken;
    }

}
